//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#ifndef VX_ENT_CREATURE_STATUS_DEFINE
class VxEntCreatureStatus
{
	int iStatus;
};
#endif // VX_ENT_CREATURE_STATUS_DEFINE

class PktCreatureStatusReq : public VxPktHdr
{
public:
	PktCreatureStatusReq()
	{
		m_u16PktLen = sizeof( PktCreatureStatusReq );
		m_u16PktType = PKT_TYPE_CREATURE_STATUS_REQ;
		u16Action = 0;
		memset( au8Res, 0, sizeof( au8Res ) );
		vx_assert( 0 == (m_u16PktLen & 0x0f));
	}
	U16					u16Action;			// action to take 0 = update
	U32					u64Sn;				// id of creature
	VxEntCreatureStatus	oCreatureStatus;	// status
	U8					au8Res[14];//res to round to 16 bytes
};
class PktCreatureStatusReply : public VxPktHdr
{
public:
	PktCreatureStatusReply()
	{
		m_u16PktLen = sizeof( PktCreatureStatusReply );
		m_u16PktType = PKT_TYPE_CREATURE_STATUS_REPLY;
		memset( au8Res, 0, sizeof( au8Res ) );
		vx_assert( 0 == (m_u16PktLen & 0x0f));
	}
	U16				u16Action;		// action to take
	U32				u64Sn;			// id of creature
	U8				au8Res[4];//res to round to 16 bytes
};
